package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.entity.ReturnListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReturnDao {

    void saveReturnList(ReturnList returnList);

    void saveReturnListGoods(@Param("returnListGoods") ReturnListGoods returnListGoods,
                             @Param("price") Integer price,
                             @Param("total") Integer total);

    List<ReturnList> getReturnList(@Param("returnNumber") String returnNumber,
                                       @Param("supplierId") Integer supplierId,
                                       @Param("state") Integer state,
                                       @Param("sTime") String sTime,
                                       @Param("eTime") String eTime);


    void returnDeleteGoods(Integer returnListId);

    void returnDelete(Integer returnListId);

    List<ReturnListGoods> getReturnListGoods(Integer returnListId);

    List<ReturnList> getReturnCount(@Param("sTime") String sTime,
                                    @Param("eTime") String eTime,
                                    @Param("goodsTypeId") Integer goodsTypeId,
                                    @Param("codeOrName") String codeOrName);

}
